﻿<Window x:Class="DataGridDemo.Window509"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:PropertyTools.Wpf;assembly=PropertyTools.Wpf"
        Title="Table" Height="450" Width="400"
        FocusManager.FocusedElement="{Binding ElementName=Grid1}">
    <Grid>
        <p:DataGrid x:Name="Grid1" 
                    ItemsSource="{Binding Table.Cells}" 
                    RowHeadersSource="{Binding Table.RowHeaders}" 
                    ColumnHeadersSource="{Binding Table.ColumnHeaders}"
                    CreateColumnHeader="{Binding CreateColumnHeader}"
                    RowHeadersFormatString="Row {0}"
                    ColumnHeadersFormatString="Col {0}">
        </p:DataGrid>
    </Grid>
</Window>
